#include <iostream>
#include <string>
#include <memory>

class RentHouse
{
public:
    virtual void renthouse() = 0;
};

class LandLord : public RentHouse
{
public:
    void renthouse()
    {
        std::cout << "出租房子" << std::endl;
    }
};

class Intermediary : RentHouse
{
public:
    void renthouse()
    {
        std::cout << "发布招租告示" << std::endl;
        std::cout << "带客人看房" << std::endl;
        lord.renthouse();
        std::cout << "负责租后维修" << std::endl;
    }

private:
    LandLord lord;
};

int main()
{
    Intermediary intermediary;
    intermediary.renthouse();

    return 0;
}